package backed.repository;

import backed.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<User, Long> {
    User findByAccount(String account);
    User findByAccountAndPassword(String account, String password);
    Long countByCarbonPointsGreaterThan(Integer carbonPoints);

}
